import java.awt.*;

public class Rock extends Object {
    Rock(){
        this.x = (int)(Math.random()*700);//金块初始值
        this.y = (int)(Math.random()*550+300);//保证金块位置不同
        this.width = 71;
        this.height = 71;
        this.m = 150;
        this.flag = false;
        this.img = Toolkit.getDefaultToolkit().getImage("imgs/rock1.png");
    }
}
